home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / YICN23.ZIP / INCLUDE / YAKSCROL.H < prev    next >
C/C++ Source or Header  |  1993-02-21  |  1KB  |  31 lines

  1. #include "stddefs.h"
  2. #include "yakLib.h"
  3. #include "yakwin.h"
  4. #include "xlib.h"
  5. #include "xtext.h"
  6.  
  7. class yakScroller : public yakWindow
  8. {
  9. public:
  10.   int position; //position is the line # at top.
  11.   enum direction {up, down};
  12.   char * myText;
  13.   yakScroller(word x1, word y1, word x2, word y2, char * imyText, int iposition = 0) :
  14.     yakWindow(x1, y1, x2, y2)
  15.     {myText = imyText; position = iposition;};
  16.   ~yakScroller() {delete myText;};
  17.   virtual void draw(word offset = VisiblePageOffs);
  18.   virtual word interpretKeyStroke(char myChar);
  19.   virtual word interpretMouseClick(void);
  20.   char * getLine(word lineNumber);
  21.   int lineLength(word lineNumber);
  22.   void drawLine(int lineNumber, int x, int y, word offset);
  23.   void activate(int x, int y, word offset = VisiblePageOffs);
  24.   void drawText(int lineNumber, int ix, int iy, word offset = VisiblePageOffs);
  25.   void drawText(int lineNumber, word offset = VisiblePageOffs);
  26.   void drawText(word offset = VisiblePageOffs);
  27.   void newText(byte * theNewText);
  28.   void activate(int x1, int y1, int x2, int y2, word offset, char * theNewText);
  29.   void pageMove(direction pageDirection, word offset = VisiblePageOffs);
  30.   void lineMove(direction lineDirection, word offset = VisiblePageOffs);
  31. };